package com.wenlin.myproduction.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author 文琳_377979485@qq.com
 * @time 2021/10/13 0013 上午 9:24
 * @desc 排班上侧列表的数据实体类
 */
public class ScheduleTopBean implements Parcelable {
    private String week;
    private String date;
    private String desc;
    private boolean orange;

    public ScheduleTopBean() {
    }

    public ScheduleTopBean(String week, String date) {
        this.week = week;
        this.date = date;
    }

    public ScheduleTopBean(String week, String date, String desc) {
        this.week = week;
        this.date = date;
        this.desc = desc;
    }

    public ScheduleTopBean(String week, String date, boolean orange) {
        this.week = week;
        this.date = date;
        this.orange = orange;
    }

    public String getWeek() {
        return week;
    }

    public void setWeek(String week) {
        this.week = week;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public boolean isOrange() {
        return orange;
    }

    public void setOrange(boolean orange) {
        this.orange = orange;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.week);
        dest.writeString(this.date);
        dest.writeString(this.desc);
        dest.writeByte(this.orange ? (byte) 1 : (byte) 0);
    }

    public void readFromParcel(Parcel source) {
        this.week = source.readString();
        this.date = source.readString();
        this.desc = source.readString();
        this.orange = source.readByte() != 0;
    }

    protected ScheduleTopBean(Parcel in) {
        this.week = in.readString();
        this.date = in.readString();
        this.desc = in.readString();
        this.orange = in.readByte() != 0;
    }

    public static final Creator<ScheduleTopBean> CREATOR = new Creator<ScheduleTopBean>() {
        @Override
        public ScheduleTopBean createFromParcel(Parcel source) {
            return new ScheduleTopBean(source);
        }

        @Override
        public ScheduleTopBean[] newArray(int size) {
            return new ScheduleTopBean[size];
        }
    };
}
